package com.gz.im.backend.callback;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.producer.SendCallback;
import org.apache.rocketmq.client.producer.SendResult;

/**
 * @author GuoZhong
 * @description
 * @date 2023/4/3 21:59
 */
@Slf4j
public class DefaultSendCallback implements SendCallback {

	public DefaultSendCallback() {
	}
	@Override
	public void onSuccess(SendResult sendResult) {
		log.info("消息发送成功");
	}

	@Override
	public void onException(Throwable throwable) {
		log.info("消息发送失败");

	}
}
